<template>
	<view :style="{'--color': color}">
		<status-bar title='辖区店铺'></status-bar>


		<suoStore v-if="!agent_id"></suoStore>

		<Stores v-else :agent_id="agent_id"></Stores>

	</view>
</template>

<script>
	import {
		mapState
	} from 'vuex'
	import suoStore from './components/suoStore.vue'
	import Stores from './components/Stores.vue'
	export default {
		components: {
			suoStore,
			Stores
		},
		data() {
			return {
				fromShare: 0,
				imgUrl: this.imgUrl,
				agent_id: '',

			}
		},
		computed: {
			...mapState(['color', 'position'])
		},
		onLoad(e) {
			if (e.fromShare) this.fromShare = e.fromShare
			if (e.agent_id) this.agent_id = e.agent_id


		},
		methods: {


		}
	}
</script>

<style lang="scss" scoped>

</style>